<?php 
require('include/client.php');
$username = $_GET['username'];
$password = $_GET['password'];
$realname = $_GET['realname'];
$mailbox = $_GET['mailbox'];
if(!isset($username,$password,$realname,$mailbox))
  {
    die('FAIL');
  }
$client = new Client($username,$mailbox,$realname,md5($password));
if(!$client->save_this())
  {
    die('FAIL');
  }
die('OK');
?>